package com.jzo2o.health.service;

import com.jzo2o.health.model.domain.ReservationSettingMp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.health.model.dto.request.ReservationSettingUpsertReqDTO;
import com.jzo2o.health.model.dto.response.ReservationSettingResDTO;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.text.ParseException;
import java.util.List;

/**
* @author 22096
* @description 针对表【reservation_setting(预约设置)】的数据库操作Service
* @createDate 2024-12-14 09:46:10
*/
public interface ReservationSettingService extends IService<ReservationSettingMp> {

    /**
     * 按月查询预约设置
     * @param date
     * @return
     */
    List<ReservationSettingResDTO> getReservationSettingByMonth(String date);

    /**
     * 编辑预约设置
     * @param reservationSettingUpsertReqDTO
     */
    void editNumberByDate(ReservationSettingUpsertReqDTO reservationSettingUpsertReqDTO);

    /**
     * 上传文件批量预约设置
     * @param file
     */
    void upload(MultipartFile file);

    void parseExcel(InputStream inputStream) throws IOException, ParseException;

}
